home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / gfx / x11 / Xincludes_930531.lha / os-include_x11.lha / os-include / X11 / Xaw / MenuButtoP.h < prev    next >
C/C++ Source or Header  |  1992-11-02  |  3KB  |  98 lines

  1. /*
  2.  * $XConsortium: MenuButtoP.h,v 1.6 89/12/11 14:57:23 kit Exp $
  3.  *
  4.  * Copyright 1989 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  */
  23.  
  24. /***********************************************************************
  25.  *
  26.  * MenuButton Widget
  27.  *
  28.  ***********************************************************************/
  29.  
  30. /*
  31.  * MenuButtonP.h - Private Header file for MenuButton widget.
  32.  *
  33.  * This is the private header file for the Athena MenuButton widget.
  34.  * It is intended to provide an easy method of activating pulldown menus.
  35.  *
  36.  * Date:    May 2, 1989
  37.  *
  38.  * By:      Chris D. Peterson
  39.  *          MIT X Consortium 
  40.  *          kit@expo.lcs.mit.edu
  41.  */
  42.  
  43. #ifndef _XawMenuButtonP_h
  44. #define _XawtMenuButtonP_h
  45.  
  46. #include <X11/Xaw/MenuButton.h>
  47. #include <X11/Xaw/CommandP.h>
  48.  
  49. /************************************
  50.  *
  51.  *  Class structure
  52.  *
  53.  ***********************************/
  54.  
  55.  
  56.    /* New fields for the MenuButton widget class record */
  57. typedef struct _MenuButtonClass 
  58. {
  59.   int makes_compiler_happy;  /* not used */
  60. } MenuButtonClassPart;
  61.  
  62.    /* Full class record declaration */
  63. typedef struct _MenuButtonClassRec {
  64.   CoreClassPart        core_class;
  65.   SimpleClassPart        simple_class;
  66.   LabelClassPart        label_class;
  67.   CommandClassPart        command_class;
  68.   MenuButtonClassPart     menuButton_class;
  69. } MenuButtonClassRec;
  70.  
  71. extern MenuButtonClassRec menuButtonClassRec;
  72.  
  73. /***************************************
  74.  *
  75.  *  Instance (widget) structure 
  76.  *
  77.  **************************************/
  78.  
  79.     /* New fields for the MenuButton widget record */
  80. typedef struct {
  81.   /* resources */
  82.   String menu_name;
  83.  
  84. } MenuButtonPart;
  85.  
  86.    /* Full widget declaration */
  87. typedef struct _MenuButtonRec {
  88.     CorePart         core;
  89.     SimplePart         simple;
  90.     LabelPart         label;
  91.     CommandPart         command;
  92.     MenuButtonPart   menu_button;
  93. } MenuButtonRec;
  94.  
  95. #endif /* _XawMenuButtonP_h */
  96.  
  97.  
  98.